package com.hba.annotation;


import com.hba.constant.RabbitConstant;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({java.lang.annotation.ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface QueueAnnotation {

    public String queueName();
    public String exchangeName() default RabbitConstant.DEFAULT_EXCHANGE_NAME;
    public boolean order() default  false;
    public boolean delay() default  false;

}
